package com.common.platform.auth.service;

import com.common.platform.auth.pojo.LoginUser;

public interface AuthService {

    /**
     *
     * 登录
     * @param username 账号
     * @param password 密码
     * @return token
     *
     */

    String Login (String user,String passWord);

    String login(String username);

    void addLoginCookie(String token);

    void logout();

    void logout(String token);

    LoginUser user(String account);

    List <String> findPermissionByRoleId(Long roleId);

    boolean check(String[] roleName);

    boolean checkAll();


}
